#include <iostream>
#include<condition_variable>
#include <mutex>
#include<thread>
#include<shared_mutex>
#include<vector>
#include<threadpoolapiset.h>
#include<atomic>

using namespace std;

typedef atomic_int DATA_TYPE;

#define DEVOLOP_NUM 20000

DATA_TYPE count(0);

void *devolop() {
    count+=1;
}


int main() {
    thread thd_dev[DEVOLOP_NUM];
    for (int i = 0; i < DEVOLOP_NUM; i++) {
        thd_dev[i] = thread(&devolop);
    };

    for (int i = 0; i < DEVOLOP_NUM; i++) {
        thd_dev[i].join();
    };

   cout<<count <<endl;
    return 0;
}
